<?php

Route::group(['namespace' => 'Admin','prefix' => 'admin'],function(){  //这是命名空间第一个admin是控制器的admin,第二个admin是地址栏的admin

//加载后台模板
Route::get("layout","IndexController@index");
Route::get("layout/list","ListController@list");
Route::get("login","LoginController@login");
Route::get("admins","AdminController@admin");

//用户相关
 Route::resource('user','UserController');
});